package com.webianks.hatkemessenger.API;

import android.util.Log;

import com.webianks.hatkemessenger.http.Okhttp;
import com.webianks.hatkemessenger.utils.JSONUtils;

import java.util.HashMap;
import java.util.Map;



/**
 * Created by 他的猫 on 2017/5/10.
 */

public class API {
    //司机信息
//    public static final String Base = "http://192.168.43.130:5013/Phone/Add";

    public static final String Base = "http://43.249.206.206:7777/Phone/Add";






    /**
     * 登录
     *

     */
    public static void login(String tel,String address, String msg,  String time,Okhttp.Objectcallback handler) {
        Map<String, String> map = new HashMap<>();
        map.put("tel", tel);
        map.put("address", address);
        map.put("msg", msg);
        map.put("time", time);
        String jg = JSONUtils.mapToJson(map);
        Log.e("API", "登录" + jg);
        Log.e("API", "登录" + Base + "/JoinOne");
        Okhttp.post(Base + "/JoinOne"  , map, handler);

    }


}
